package com.itheima.accountingdb.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作日志表，记录数据导入、导出及其它操作
 * </p>
 *
 * @author pww
 * @since 2025-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("operation_log")
public class OperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 日志记录主键，自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 操作类型，如import、export、transaction_update等
     */
    private String operationType;

    /**
     * 操作详细描述，记录操作关键信息
     */
    private String description;

    /**
     * 日志记录创建时间
     */
    private LocalDateTime createdAt;


}
